home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / lib / mntlib44.zoo / mntlib / execl.c < prev    next >
C/C++ Source or Header  |  1994-03-01  |  339b  |  22 lines

  1. /*
  2.     execl for MiNT/TOS; written by Eric R. Smith, and
  3.     placed in the public domain
  4. */
  5.  
  6. #include <stdarg.h>
  7. #include <process.h>
  8. #include <unistd.h>
  9.  
  10. #ifdef __STDC__
  11. int execl(const char *path, ...)
  12. #else
  13. int execl(path)
  14.     char    *path;
  15. #endif
  16. {
  17.     va_list args;
  18.  
  19.     va_start(args, path);
  20.     return _spawnve(P_OVERLAY, path, (char **)args, NULL);
  21. }
  22.